package com.kdzy.lshy.socity_server.controller;


import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping(value = "/")
@Api(value="hello")
@CrossOrigin("*")
public class Hello {

    @RequestMapping(value = "/hello/{param}")
    @ResponseBody
    @ApiOperation(notes = "/search", httpMethod = "POST", value = "后台用户查询年份")
    public Object getParam(
            @ApiParam(required=false,value="param#{name:'',creater:''，begintime:'',endtime:'',index:'',rows:'','sort:'','esc':''}",name="param")

            @PathVariable("param")  String param ){

        return  "hello:"+param;
    }
}
